LassoScript Utility
Basics Browse Detail

[Null->Type]

Tag Link [Null->Type] Category Tags
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Null->Type] returns the data type of a value.

Member tags for Null can be used on values of any data type including custom, third party data types.

Syntax

[Value->Type]

Parameters

No Parameters Required.

Examples

To display the type of a value:

Use the [Null->Type] tag. The following example stores values of different types in an array, then fetches the type for each value using [Loop] ... [/Loop] tags.

[Var: 'Values'=(Array: 'Hello', 123, 123.456, Null)]
[Loop: $Values->Size]
  <br>[Output: $Values->(Get: (Loop_Count))]:
  [Output: $Values->(Get: (Loop_Count))->Type]
[/Loop]

<br>Hello: String
<br>123: Integer
<br>123.456: Decimal
<br> : Null